package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TbDetectionRlStandardMapper;
import com.ruoyi.system.domain.TbDetectionRlStandard;
import com.ruoyi.system.service.ITbDetectionRlStandardService;

/**
 * 熔炼炉铁水标准Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-02-11
 */
@Service
public class TbDetectionRlStandardServiceImpl implements ITbDetectionRlStandardService 
{
    @Autowired
    private TbDetectionRlStandardMapper tbDetectionRlStandardMapper;

    /**
     * 查询熔炼炉铁水标准
     * 
     * @param id 熔炼炉铁水标准主键
     * @return 熔炼炉铁水标准
     */
    @Override
    public TbDetectionRlStandard selectTbDetectionRlStandardById(Long id)
    {
        return tbDetectionRlStandardMapper.selectTbDetectionRlStandardById(id);
    }

    /**
     * 查询熔炼炉铁水标准列表
     * 
     * @param tbDetectionRlStandard 熔炼炉铁水标准
     * @return 熔炼炉铁水标准
     */
    @Override
    public List<TbDetectionRlStandard> selectTbDetectionRlStandardList(TbDetectionRlStandard tbDetectionRlStandard)
    {
        return tbDetectionRlStandardMapper.selectTbDetectionRlStandardList(tbDetectionRlStandard);
    }

    /**
     * 新增熔炼炉铁水标准
     * 
     * @param tbDetectionRlStandard 熔炼炉铁水标准
     * @return 结果
     */
    @Override
    public int insertTbDetectionRlStandard(TbDetectionRlStandard tbDetectionRlStandard)
    {
        tbDetectionRlStandard.setCreateTime(DateUtils.getNowDate());
        return tbDetectionRlStandardMapper.insertTbDetectionRlStandard(tbDetectionRlStandard);
    }

    /**
     * 修改熔炼炉铁水标准
     * 
     * @param tbDetectionRlStandard 熔炼炉铁水标准
     * @return 结果
     */
    @Override
    public int updateTbDetectionRlStandard(TbDetectionRlStandard tbDetectionRlStandard)
    {
        tbDetectionRlStandard.setUpdateTime(DateUtils.getNowDate());
        return tbDetectionRlStandardMapper.updateTbDetectionRlStandard(tbDetectionRlStandard);
    }

    /**
     * 批量删除熔炼炉铁水标准
     * 
     * @param ids 需要删除的熔炼炉铁水标准主键
     * @return 结果
     */
    @Override
    public int deleteTbDetectionRlStandardByIds(Long[] ids)
    {
        return tbDetectionRlStandardMapper.deleteTbDetectionRlStandardByIds(ids);
    }

    /**
     * 删除熔炼炉铁水标准信息
     * 
     * @param id 熔炼炉铁水标准主键
     * @return 结果
     */
    @Override
    public int deleteTbDetectionRlStandardById(Long id)
    {
        return tbDetectionRlStandardMapper.deleteTbDetectionRlStandardById(id);
    }
}
